using System.Diagnostics.Contracts;
using System.Reflection;

namespace Charisma.Conventions
{
    public class MemberPair
    {
        public MemberPair(MemberInfo primaryMember, MemberInfo backingMember)
        {
            Contract.Requires(primaryMember != null);
            Contract.Requires(backingMember != null);
            Contract.Requires(backingMember != primaryMember);

            PrimaryMember = primaryMember;
            BackingMember = backingMember;
        }

        public MemberInfo PrimaryMember { get; private set; }

        public MemberInfo BackingMember { get; private set; }
    }
}